-
Notifications
You must be signed in to change notification settings - Fork 16
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
iOS9.3 patch #9
base: master
Are you sure you want to change the base?
iOS9.3 patch #9
Conversation
} | ||
} | ||
if(contains) { | ||
UIAlertController* alert=[UIAlertController alertControllerWithTitle:[NSString stringWithFormat:@"%@ IS uninstalling",[app displayName]] message:@"Please WAIT A SEC" preferredStyle:UIAlertControllerStyleAlert]; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Lets make this text a little bit more professional.
UIAlertController* alert=[UIAlertController alertControllerWithTitle:[NSString stringWithFormat:@"%@ is uninstalling",[app displayName]] message:@"Please wait. This should only take a few seconds." preferredStyle:UIAlertControllerStyleAlert];
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In addition to this, we should probably be using localized strings here.
@@ -397,11 +463,17 @@ static void uninstallClickedForIcon(SBIcon *self) { | |||
} | |||
|
|||
-(NSString *)uninstallAlertTitle { | |||
return [NSString stringWithFormat:SBLocalizedString(@"UNINSTALL_ICON_TITLE"), | |||
%log; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
remove this %log
[[self application] displayName]]; | ||
} | ||
|
||
-(NSString *)uninstallAlertBody { | ||
%log; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
remove log
@@ -427,11 +499,17 @@ static void uninstallClickedForIcon(SBIcon *self) { | |||
} | |||
|
|||
-(NSString *)uninstallAlertConfirmTitle { | |||
return SBLocalizedString(@"UNINSTALL_ICON_CONFIRM"); | |||
%log; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
remove log
} | ||
|
||
-(NSString *)uninstallAlertCancelTitle { | ||
return SBLocalizedString(@"UNINSTALL_ICON_CANCEL"); | ||
%log; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
remove log
@@ -1,4 +1,4 @@ | |||
CyDelete | |||
========= | |||
|
|||
The original mobile substrate CyDelete tweak created by @DHowett updated for iOS 7 and 8. | |||
The original mobile substrate CyDelete tweak created by @DHowett and ported to iOS7/8 by Ryan Burke updated for iOS 9. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A mobile substrate tweak to uninstall applications from the homescreen that have been installed using Cydia.
Contributors
CyDelete - Dustin Howett
CyDelete 7 & 8 - Ryan Burke
CyDelete 9 - Pal Lockhart
In fact seems this dialog not need to show in latest build. Previous I’m using `apt-get remove then uicache` way, and it disappears too late( almost 10 secs after clicking) so I added the dialog. Then I changed to the new way, first unregister app to hide the icon, then apt-get remove in background; this way the dialog seems unnecessary, since user will have no time on click it again, but I forgot to remove the code. Let me modify it tomorrow :P too late in me time region, almost sun rising, too easy to introduce bug.
… 在 2016年12月16日,上午5:05,Ryan Burke ***@***.***> 写道:
@ryanb93 commented on this pull request.
In CyDelete.xm <#9>:
> SBApplication *app = [icon application];
id pkgName = ownerForSBApplication(app);
if(pkgName != [NSNull null]) {
uninstallClickedForIcon(icon);
}
- %orig;
+ if(cydelete_IOSVersionAbove92() && [[iconPackagesDict allKeys] containsObject:[app bundleIdentifier]]) {
+ //new mechanism: iOS 9.2 above will not automatically trigger uninstall, we've to call it manually
+ BOOL contains = NO;
+ for(CDUninstallDpkgOperation *operation in [uninstallQueue operations]){
+ if([operation.package isEqualToString:[app bundleIdentifier]]){
+ contains = YES;
+ break;
+ }
+ }
+ if(contains) {
+ UIAlertController* alert=[UIAlertController alertControllerWithTitle:[NSString stringWithFormat:@"%@ IS uninstalling",[app displayName]] message:@"Please WAIT A SEC" preferredStyle:UIAlertControllerStyleAlert];
In addition to this, we should probably be using localized strings here.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub <#9>, or mute the thread <https://github.com/notifications/unsubscribe-auth/AADjbsCB1lJs-nQTT9ht4RkdOtULpFt1ks5rIauvgaJpZM4LOjHZ>.
|
Adds iOS 9.3 support, should also works for iOS 7/8/9.0-9.1 ( not tested due to lack of device ), not sure for iOS 9.2. Previous design only for iOS9, so pangu8 protection was replaced to pangu 9.2-9.3 protection.